(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/yonghu/add-or-update"], {
    3960: function (e, n, r) {},
    "3dbc": function (e, n, r) {
      "use strict";
      (function (e) {
        var t = r("4ea4");
        Object.defineProperty(n, "__esModule", {
          value: !0
        }), n.default = void 0;
        var a = t(r("2eee")),
          i = t(r("c973")),
          u = {
            data: function () {
              return {
                ruleForm: {
                  zhanghao: "",
                  mima: "",
                  xingming: "",
                  nianling: "",
                  xingbie: "",
                  shouji: "",
                  zhaopian: "",
                  money: ""
                },
                xingbieOptions: [],
                xingbieIndex: 0,
                user: {},
                ro: {
                  zhanghao: !1,
                  mima: !1,
                  xingming: !1,
                  nianling: !1,
                  xingbie: !1,
                  shouji: !1,
                  zhaopian: !1,
                  money: !1
                }
              }
            },
            components: {
              wPicker: function () {
                Promise.all([r.e("common/vendor"), r.e("components/w-picker/w-picker")]).then(function () {
                  return resolve(r("97f3"))
                }.bind(null, r)).catch(r.oe)
              }
            },
            computed: {},
            onLoad: function (n) {
              var r = this;
              return (0, i.default)(a.default.mark((function t() {
                var i, u, o, c;
                return a.default.wrap((function (t) {
                  while (1) switch (t.prev = t.next) {
                    case 0:
                      return i = e.getStorageSync("nowTable"), t.next = 3, r.$api.session(i);
                    case 3:
                      if (u = t.sent, r.user = u.data, r.xingbieOptions = "男,女".split(","), r.ruleForm.userid = e.getStorageSync("userid"), n.refid && (r.ruleForm.refid = n.refid, r.ruleForm.nickname = e.getStorageSync("nickname")), !n.id) {
                        t.next = 14;
                        break
                      }
                      return r.ruleForm.id = n.id, t.next = 12, r.$api.info("yonghu", r.ruleForm.id);
                    case 12:
                      u = t.sent, r.ruleForm = u.data;
                    case 14:
                      if (!n.cross) {
                        t.next = 53;
                        break
                      }
                      o = e.getStorageSync("crossObj"), t.t0 = a.default.keys(o);
                    case 17:
                      if ((t.t1 = t.t0()).done) {
                        t.next = 53;
                        break
                      }
                      if (c = t.t1.value, "zhanghao" != c) {
                        t.next = 23;
                        break
                      }
                      return r.ruleForm.zhanghao = o[c], r.ro.zhanghao = !0, t.abrupt("continue", 17);
                    case 23:
                      if ("mima" != c) {
                        t.next = 27;
                        break
                      }
                      return r.ruleForm.mima = o[c], r.ro.mima = !0, t.abrupt("continue", 17);
                    case 27:
                      if ("xingming" != c) {
                        t.next = 31;
                        break
                      }
                      return r.ruleForm.xingming = o[c], r.ro.xingming = !0, t.abrupt("continue", 17);
                    case 31:
                      if ("nianling" != c) {
                        t.next = 35;
                        break
                      }
                      return r.ruleForm.nianling = o[c], r.ro.nianling = !0, t.abrupt("continue", 17);
                    case 35:
                      if ("xingbie" != c) {
                        t.next = 39;
                        break
                      }
                      return r.ruleForm.xingbie = o[c], r.ro.xingbie = !0, t.abrupt("continue", 17);
                    case 39:
                      if ("shouji" != c) {
                        t.next = 43;
                        break
                      }
                      return r.ruleForm.shouji = o[c], r.ro.shouji = !0, t.abrupt("continue", 17);
                    case 43:
                      if ("zhaopian" != c) {
                        t.next = 47;
                        break
                      }
                      return r.ruleForm.zhaopian = o[c], r.ro.zhaopian = !0, t.abrupt("continue", 17);
                    case 47:
                      if ("money" != c) {
                        t.next = 51;
                        break
                      }
                      return r.ruleForm.money = o[c], r.ro.money = !0, t.abrupt("continue", 17);
                    case 51:
                      t.next = 17;
                      break;
                    case 53:
                      r.styleChange();
                    case 54:
                    case "end":
                      return t.stop()
                  }
                }), t)
              })))()
            },
            methods: {
              styleChange: function () {
                this.$nextTick((function () {}))
              },
              xingbieChange: function (e) {
                this.xingbieIndex = e.target.value, this.ruleForm.xingbie = this.xingbieOptions[this.xingbieIndex]
              },
              zhaopianTap: function () {
                var e = this;
                this.$api.upload((function (n) {
                  e.ruleForm.zhaopian = e.$base.url + "upload/" + n.file, e.$forceUpdate(), e.$nextTick((function () {
                    e.styleChange()
                  }))
                }))
              },
              getUUID: function () {
                return (new Date).getTime()
              },
              onSubmitTap: function () {
                var e = this;
                return (0, i.default)(a.default.mark((function n() {
                  return a.default.wrap((function (n) {
                    while (1) switch (n.prev = n.next) {
                      case 0:
                        if (e.ruleForm.zhanghao) {
                          n.next = 3;
                          break
                        }
                        return e.$utils.msg("账号不能为空"), n.abrupt("return");
                      case 3:
                        if (e.ruleForm.mima) {
                          n.next = 6;
                          break
                        }
                        return e.$utils.msg("密码不能为空"), n.abrupt("return");
                      case 6:
                        if (e.ruleForm.xingming) {
                          n.next = 9;
                          break
                        }
                        return e.$utils.msg("姓名不能为空"), n.abrupt("return");
                      case 9:
                        if (e.ruleForm.nianling) {
                          n.next = 12;
                          break
                        }
                        return e.$utils.msg("年龄不能为空"), n.abrupt("return");
                      case 12:
                        if (!e.ruleForm.nianling || e.$validate.isIntNumer(e.ruleForm.nianling)) {
                          n.next = 15;
                          break
                        }
                        return e.$utils.msg("年龄应输入整数"), n.abrupt("return");
                      case 15:
                        if (e.ruleForm.shouji) {
                          n.next = 18;
                          break
                        }
                        return e.$utils.msg("手机不能为空"), n.abrupt("return");
                      case 18:
                        if (!e.ruleForm.shouji || e.$validate.isMobile(e.ruleForm.shouji)) {
                          n.next = 21;
                          break
                        }
                        return e.$utils.msg("手机应输入手机格式"), n.abrupt("return");
                      case 21:
                        if (!e.ruleForm.money || e.$validate.isNumber(e.ruleForm.money)) {
                          n.next = 24;
                          break
                        }
                        return e.$utils.msg("余额应输入数字"), n.abrupt("return");
                      case 24:
                        if (!e.ruleForm.id) {
                          n.next = 29;
                          break
                        }
                        return n.next = 27, e.$api.update("yonghu", e.ruleForm);
                      case 27:
                        n.next = 31;
                        break;
                      case 29:
                        return n.next = 31, e.$api.add("yonghu", e.ruleForm);
                      case 31:
                        e.$utils.msgBack("提交成功");
                      case 32:
                      case "end":
                        return n.stop()
                    }
                  }), n)
                })))()
              },
              optionsChange: function (e) {
                this.index = e.target.value
              },
              bindDateChange: function (e) {
                this.date = e.target.value
              },
              getDate: function (e) {
                var n = new Date,
                  r = n.getFullYear(),
                  t = n.getMonth() + 1,
                  a = n.getDate();
                return "start" === e ? r -= 60 : "end" === e && (r += 2), t = t > 9 ? t : "0" + t, a = a > 9 ? a : "0" + a, "".concat(r, "-").concat(t, "-").concat(a)
              },
              toggleTab: function (e) {
                this.$refs[e].show()
              }
            }
          };
        n.default = u
      }).call(this, r("543d")["default"])
    },
    4675: function (e, n, r) {
      "use strict";
      (function (e, n) {
        var t = r("4ea4");
        r("f9f2");
        t(r("66fd"));
        var a = t(r("9eea"));
        e.__webpack_require_UNI_MP_PLUGIN__ = r, n(a.default)
      }).call(this, r("bc2e")["default"], r("543d")["createPage"])
    },
    5215: function (e, n, r) {
      "use strict";
      r.d(n, "b", (function () {
        return t
      })), r.d(n, "c", (function () {
        return a
      })), r.d(n, "a", (function () {}));
      var t = function () {
          var e = this.$createElement;
          this._self._c
        },
        a = []
    },
    "9eea": function (e, n, r) {
      "use strict";
      r.r(n);
      var t = r("5215"),
        a = r("c54e");
      for (var i in a)["default"].indexOf(i) < 0 && function (e) {
        r.d(n, e, (function () {
          return a[e]
        }))
      }(i);
      r("b9ba");
      var u = r("f0c5"),
        o = Object(u["a"])(a["default"], t["b"], t["c"], !1, null, "9f20029a", null, !1, t["a"], void 0);
      n["default"] = o.exports
    },
    b9ba: function (e, n, r) {
      "use strict";
      var t = r("3960"),
        a = r.n(t);
      a.a
    },
    c54e: function (e, n, r) {
      "use strict";
      r.r(n);
      var t = r("3dbc"),
        a = r.n(t);
      for (var i in t)["default"].indexOf(i) < 0 && function (e) {
        r.d(n, e, (function () {
          return t[e]
        }))
      }(i);
      n["default"] = a.a
    }
  },
  [
    ["4675", "common/runtime", "common/vendor"]
  ]
]);